/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package group2assignone.ucm.manager;

import group2assignone.ucm.UCController;
import group2assignone.view.manager.AddPromotionView;
import group2assignone.view.manager.ManagerView;

/**
 *
 * @author Brad
 */
class UCAddPromotionCancel implements UCController{
    private AddPromotionView promoView = new AddPromotionView();

    /**
     * sets view
     * @param eView
     */
    public UCAddPromotionCancel(AddPromotionView pView) {
        promoView = pView;
    }

    @Override
    public void run() {
        //go back to main screen without saving changes
        promoView.dispose();
        ManagerView mv = ManagerView.getInstance();
        mv.setVisible(true);
    }

}
